package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectAnswerDTO;
import com.jingdianjichi.subject.application.dto.SubjectInfoDTO;
import com.jingdianjichi.subject.application.dto.SubjectLabelDTO;
import com.jingdianjichi.subject.application.dto.SubjectMappingDTO;
import com.jingdianjichi.subject.domain.entity.SubjectAnswerBO;
import com.jingdianjichi.subject.domain.entity.SubjectInfoBO;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import com.jingdianjichi.subject.domain.entity.SubjectMappingBO;
import com.jingdianjichi.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 标签dto的转换
 */
@Mapper
public interface SubjectInfoConvert {
        SubjectInfoConvert INSTANCE = Mappers.getMapper(SubjectInfoConvert.class);
        SubjectInfoBO convertDtoToBo(SubjectInfoDTO subjectInfoDTO);
        SubjectInfo convertBoToSubject(SubjectInfoBO subjectInfoBO);
        SubjectAnswerBO convertDtoToBo(SubjectAnswerDTO subjectAnswerDTO);
        SubjectInfoDTO  SubjectInfoBoToDto(SubjectInfoBO subjectInfoBO ) ;
        SubjectAnswerDTO convertAnswerBOToDTO(SubjectAnswerBO value);
        List<SubjectAnswerDTO> convertListAnswerBOToDTO(List<SubjectAnswerBO> subjectAnswerBOList);
}
